home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
- HS (hindsite) command
-
- Purpose
-
- Allows you to look back at certain data that has scrolled off the
- screen.
-
-
- Format
-
- HS [/Bn] [/Hn] [/Wn] [/An] [/Pn] [/S+|-] [/K]
-
-
- Installation
-
- Hindsite (HS) is installed into PCED as a supplement to PCED's
- keyboard handler. PCED must be installed before HS.
-
- Install HS by typing
-
- HS <parameterlist>
-
- at the DOS prompt or by including that command in your
- AUTOEXEC.BAT startup batch. All optional parameters listed above
- are valid at install time except /K. Parameters are described
- more fully below.
-
-
- Optional Parameters
-
- The optional parameters are as follows:
-
- /B Buffer: sets the size of the buffer HS uses to store
- scrolled-off data. The buffer defaults to 4000 characters,
- but you can set any size from 100 to 32000 characters via
- the /B parameter. For example, to install HS with an 8000
- character buffer:
-
- HS /B8000
-
- The /B parameter is valid ONLY at the time HS is installed;
- it cannot be changed after installation.
-
- /H Height: defines the maximum height of the screen, in lines.
- Normal screen height is 25 lines (which is the default), but
- certain video adapters allow "taller" screens. For example,
- IBM's Enhanced Graphics Adapter (EGA) can generate screens
- that are 43 lines high. To instruct HS to reserve
- sufficient storage for a 43-line EGA screen:
-
- HS /H43
-
- HS will only accept values from 25 to 50 for screen height.
-
-
-
-
-
- HS (hindsite) command
-
- The /H parameter is valid ONLY at the time HS is installed;
- it cannot be changed after installation.
-
- /W Width: defines the maximum width of the screen, in columns.
- Normal screen width is 80 columns (which is the default),
- but certain video adapters allow "wider" screens. For
- example, some adapters can generate screens that are 132
- columns "wide". To instruct HS to reserve sufficient
- storage for a 132-column screen:
-
- HS /W132
-
- HS will only accept values from 80 to 150 for screen width.
- The /W parameter is valid ONLY at the time HS is installed;
- it cannot be changed after installation.
-
- /A Attribute: defines the video attribute (color) that HS will
- use in displaying scrolled off data. The default attribute
- is 7 (normal intensity white on black). To change the
- attribute to yellow on blue (color 30):
-
- HS /A30
-
- You can respecify the /A attribute as often as you wish.
-
- /P Prompt attribute: defines the video attribute (color) that
- HS will use in displaying its prompt. The default attribute
- is 15 (high intensity white on black). To change the
- attribute to blue on yellow (color 97):
-
- HS /A97
-
- You can respecify the /P attribute as often as you wish.
-
- /S Synchronization: with display adapters other than
- monochrome, HS normally waits for a video retrace to occur
- before writing to the screen. This prevents "snow" on
- standard Color Graphics Adapters, but it slows down HS's
- display speed. Some newer adapters (including IBM's EGA) do
- not need this "synchronization", and HS can be made to run
- faster by suppressing synchronization.
-
- The /S parameter has two formats:
-
- /S+ Synchronize on retrace (slow)
- /S- No synchronize on retrace (fast)
-
- If you have a "snowless" adapter or if you don't care about
- snow, you can make HS run faster as follows:
-
- HS /S-
-
-
-
-
-
-
- HS (hindsite) command
-
- The /S parameter can be respecified as often as you wish.
- It has no effect on the monochrome adapter, which is always
- set to /S-.
-
- /K Kill: issue the command "HS /K" if you wish to remove HS
- from memory entirely. In some cases it may not be possible
- for this to be done safely; HS will tell you so if this
- occurs. The /K parameter is not valid at install time.
-
-
- Operation
-
- After HS has been installed, you can "scroll back" and view data
- that has disappeared off the top of the screen by pressing the
- <PgUp> key at the DOS prompt or in PCED-compatible programs such
- as DEBUG or EDLIN. Once in the scrollback view, the following
- keys are active:
-
- <Up> Scroll the view one line toward the "top" of the
- buffer (oldest data).
-
- <Down> Scroll the view one line toward the "bottom" of
- the buffer (newest data).
-
- <PgUp> Scroll the view one "page" toward the top of the
- buffer.
-
- <PgDn> Scroll the view one page toward the bottom of the
- buffer.
-
- <Home> Scroll the view all the way to the top--view the
- oldest data in the buffer.
-
- <End> Scroll the view all the way to the bottom--view
- the newest data.
-
- <Esc> Return to normal operation.
-
-
- Remarks
-
- 1. General design considerations
-
- Hindsite is designed as a "DOS level" backscroll program. That
- is, its primary purpose is to capture text that has been sent to
- the screen by DOS commands (such as DIR) and simple
- non-interactive programs, and to allow you easily review this
- data at the DOS prompt. Two primary design considerations were
- to make HS small (the size of the resident portion of HS is just
- 2K bytes, plus buffer space), and to have as little effect as
- possible on screen speed during normal system operation.
-
-
-
-
-
-
- HS (hindsite) command
-
- For these reasons, HS captures ONLY data that has been sent to
- the screen using standard DOS functions. It does NOT attempt to
- capture data from programs that either write information directly
- to screen memory, or use BIOS functions for screen output. It is
- our feeling that most such programs have no need of a backscroll
- facility, and that providing such a facility where none is needed
- would greatly increase the size and complexity of the program.
- Examples of programs that do not need backscroll capabilities are
- spreadsheets, word processors and text editors, and most
- communications programs.
-
- You will find, however, that HS is quite useful in that it
- captures information from all DOS commands and programs (DIR,
- TREE, CHKDSK, DEBUG, EDLIN, LINK, MASM etc.) and from many user-
- supplied programs as well. Most non-interactive utility- and
- system-oriented programs are fully compatible with HS, notable
- exceptions being those that were compiled using Turbo Pascal's
- default BIOS mode. (Not to editorialize, but this is the 163rd
- reason why we think that most TP utilities should be compiled to
- use DOS, rather than BIOS, for output.)
-
-
- 2. Availability
-
- HS backscroll is available whenever PCED is "active" as defined
- in your PCED manual (page 4). For most purposes, this means "at
- the DOS prompt". However, HS is also available at the DEBUG and
- EDLIN prompts, and from within other PCED-compatible programs.
-
-
- 3. Screen size
-
- The /H and /W parameters allow HS to determine the maximum amount
- of memory it will need in order to save the "live" screen when
- backscrolling is invoked. They do NOT cause the actual screen
- mode to be altered. Thus, for example, a /H43 parameter does not
- cause backscrolls to be displayed in 43 line mode. In order to
- see 43-line backscrolls, you must already be in 43-line mode when
- you press <PgUp>.
-
-
- 4. Other PCED keyboard drivers
-
- If you use another PCED keyboard driver, load it before Hindsite.
- HS will call your driver for input when necessary.
-
-
- 5. Technical information
-
- HS stores only characters (no attributes). Backscroll display
- attributes are determined by the /A and /P parameters.
-
-
-
-
-
-
- HS (hindsite) command
-
- HS does not necessarily store 80 characters per line; only data
- actually output is stored. A blank line, for example, only
- requires one byte of storage. Also, trailing blanks at the end
- of a line are not stored. Thus, the number of "pages" of
- scrolled data available for viewing will vary.
-
- ANSI sequences that could result in cursor movement are
- interpreted as carriage returns.
-
- Carriage returns are always assumed to signify the beginning of a
- CR/LF sequence. LF's following carriage returns are ignored.
-
- LF's following anything other than CR's are interpreted as CR's
- (hence, from above, as CR/LF's).
-
- HS attempts to make backscrolling more "efficient" in terms of
- screen use by suppressing the third and all following consecutive
- carriage returns.
-
- A backspace results in the deletion of the last character in the
- buffer unless the last character is a carriage return.
-
- Lines wider than the defined maximum screen width (default 80
- characters) will automatically wrap.
-
- HS recognizes the following, and ONLY the following, DOS
- functions as console output:
-
- 02H Output char in DL
- 06H Output char in DL iff DL < 255
- 09H Output '$' terminated string at DS:DX
- 40H Output CX characters from DS:DX. HS only cares
- about handles 1 (stdout) and 2 (stderr).
-
- HS picks up the number of screen rows from the EGA-documented
- byte at 40H:84H. If this byte is zero, 25 rows are assumed.
-
- * * * * * * * * *
-
- IBM is a registered trademark of International Business Machines.
- Turbo Pascal is a trademark of Borland International, Inc. PCED
- is a trademark of the Cove Software Group.
-
-
- Copyright (c) 1986 by
- The Cove Software Group
- Post Office Box 1072
- Columbia, Maryland 21044
- 301-992-9371
- ALL RIGHTS RESERVED
-
- hs 1.02/cjd 860814
-
-